package com.kotlin.android.simple.batch

import androidx.activity.viewModels
import androidx.lifecycle.Observer
import com.alibaba.android.arouter.facade.annotation.Route
import com.kotlin.android.core.BaseVMActivity
import com.kotlin.android.ktx.ext.e
import com.kotlin.android.router.path.RouterActivityPath
import com.kotlin.android.simple.BR
import com.kotlin.android.simple.R
import kotlinx.android.synthetic.main.simple_main.*

/**
 *
 * Created on 2020/5/15.
 *
 * @author o.s
 */
@Route(path = RouterActivityPath.Simple.PAGER_BATCH_MVVM)
class BatchMVVMActivity : BaseVMActivity<BatchViewModel>() {
    override fun getLayoutResId(): Int = R.layout.simple_batch

    override fun initVM(): BatchViewModel = viewModels<BatchViewModel>().value

    override fun initView() {
        mViewModel?.run {
            mBinding?.setVariable(BR.viewModel, mViewModel)
        }
//        simpleRequest?.setOnClickListener {
//            mViewModel?.loadData()
//        }
    }

    override fun initData() {
    }

    override fun startObserve() {
//        mViewModel?.uiState?.observe(this, Observer {
//            it.seatIcons.e()
//            it.seatIcons?.apply {
//
//            }
//            simpleResponse?.text = it.success
//            it.serviceCall?.apply {
//
//            }
//        })
    }
}